package com.yidu.drug.model;

import java.io.Serializable;
import java.util.Date;

import com.yidu.drug.common.Page;
import com.yidu.drug.common.Tools;

public class RepertoryModel implements Serializable {
	/**
	 * 库存ID
	 */
    private String repId;

    /**
     * 分店ID
     */
    private String filId;

    /**
     * 操作时间
     */
    private Date optime;

    /**
     * 库存数量
     */
    private Long repNumber;

    /**
     * 操作人
     */
    private String oper;

    /**
     * 是否有效
     */
    private String isva;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 业务ID
     */
    private String pwId;
    
    /**
     * 物品名称(用于查询用的，可放材料名称和药品名称)
     */
    private String itemName;
    
    /**
     * 物品类型(用于查询，可放材料类型和药品类型)
     */
    private String itemType;
    
    /**
     * 当前页数
     */
    private String page;
    
    /**
     * 每页显示的行数
     */
    private String limit;
    
    /**
     * 分页对象
     */
    private Page pages;
    
    /**
     * 时间(用于转换日期格式用的)
     */
    private String optimes;
    
    /**
     * 条件(用于判断是药品还是材料)
     */
    private String condition;
    
    /**
     * 质检总报表ID
     */
    private String sumId;
    
    /**
     * 用于查询库存预警(不为空表示库存预警，为空表示不预警)
     */
    private String warning;

    private static final long serialVersionUID = 1L;

    public String getRepId() {
        return repId;
    }

    public void setRepId(String repId) {
        this.repId = repId;
    }

    public String getFilId() {
        return filId;
    }

    public void setFilId(String filId) {
        this.filId = filId;
    }

    public Date getOptime() {
        return optime;
    }

    public void setOptime(Date optime) {
        this.optime = optime;
    }

    public Long getRepNumber() {
        return repNumber;
    }

    public void setRepNumber(Long repNumber) {
        this.repNumber = repNumber;
    }

    public String getOper() {
        return oper;
    }

    public void setOper(String oper) {
        this.oper = oper;
    }

    public String getIsva() {
        return isva;
    }

    public void setIsva(String isva) {
        this.isva = isva;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getPwId() {
        return pwId;
    }

    public void setPwId(String pwId) {
        this.pwId = pwId;
    }

	public String getPage() {
		return page;
	}

	public String getLimit() {
		return limit;
	}

	public Page getPages() {
		return pages;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public void setLimit(String limit) {
		this.limit = limit;
	}

	public void setPages(Page pages) {
		this.pages = pages;
	}

	public String getOptimes() {
		return optimes = Tools.getTimeStr(optime);
	}

	public void setOptimes(String optimes) {
		this.optimes = optimes;
	}

	public String getItemName() {
		return itemName;
	}

	public String getItemType() {
		return itemType;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public void setItemType(String itemType) {
		this.itemType = itemType;
	}

	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}

	public String getSumId() {
		return sumId;
	}

	public void setSumId(String sumId) {
		this.sumId = sumId;
	}

	public String getWarning() {
		return warning;
	}

	public void setWarning(String warning) {
		this.warning = warning;
	}

	
	
	
}